<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-07-05 13:32
 *
 * Version: 2.0
 */

namespace App\Modules\DataCenter\Validators;

class StatisticsValidator
{
	public static function validator(){
		return [
			'getDataStoreHead' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				]
			],
			'getBossDataCenter' =>  [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				]
			],
			'getOperatingDataYesterday'=>[
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				]
			],
			'getVisitorData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				]
			],
			'getVisitorList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'getOrderData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				]
			],
			'getOrderList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'getPieChartOrderData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
			],
			'getPaymentBarChartList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				]
			],
			'getMemberCardDataCenter' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				]
			],
			'getCardFlowDataCenter' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'getOrderPointData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
			],
			'getOrderPointListData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'user_id' => [
					'title' => "理发师Id",
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'getBarberRankData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'type' => [
					'title' => "类型",
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
			],
			'getOrderServiceData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'is_amount' => [
					'title' => "是否是营业额",
					'rule' => 'nullable|boolean',
					'message' => []
				],
				'is_limit' => [
					'title' => "查询条数是否限制",
					'rule' => 'nullable|boolean',
					'message' => []
				],
			],
			'getOrderServiceList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'service_id' => [
					'title' => "服务ID",
					'rule' => 'required|numeric',
					'message' => []
				],
				'page_size' => [
					'title' => "页面显示大小",
					'rule' => 'nullable|numeric',
					'message' => []
				],
			],
			'getContributionAmountData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'is_barber' => [
					'title' => "是否是理发师",
					'rule' => 'nullable|boolean',
					'message' => []
				],
				'is_limit' => [
					'title' => "查询条数是否限制",
					'rule' => 'nullable|boolean',
					'message' => []
				],
			],
			'getContributionServiceList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'service_id' => [
					'title' => "服务ID",
					'rule' => 'required|numeric',
					'message' => []
				]
			],
			'getContributionBarberList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'user_id' => [
					'title' => "理发师Id",
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'date_type' => [
					'title'  => '日期查询类型',
					'rule'   => 'nullable|numeric',
					'message' => [
						'date.numeric' => '按日/周/月查询，数据类型必须为0/1/2'
					]
				],
				'page_size' => [
					'title'  => '页面显示条数大小',
					'rule'   => 'nullable|numeric',
					'message' => []
				]
			],
			'getCenterUserSalaryData' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
			],
			'getCenterUserSalaryList' => [
				'store_id' => [
					'title' => "店铺Id",
					'rule' => 'required|numeric',
					'message' => []
				],
				'user_id' => [
					'title' => "理发师Id",
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'month' => [
					'title'  => '查询月份',
					'rule'   => 'nullable|date',
					'message' => []
				],
			]



		];
	}

}